<xsl:stylesheet version="1.1"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns="http://www.w3.org/2000/svg"
                xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:xlink="http://www.w3.org/1999/xlink">

    <xsl:param name="bonus-width"/>
    <xsl:param name="bonus-height"/>
    <xsl:param name="outline-width"/>
    <xsl:param name="body-fill"/>
    <xsl:param name="body-stroke"/>
    <xsl:param name="body-opacity"/>

    <xsl:output method="xml"/>

    <xsl:template match="/">

        <svg width="{$bonus-width}" height="{$bonus-height}" viewBox="0 0 {$bonus-width} {$bonus-height}">
            <xsl:variable name="r" select="$bonus-width div 2 - $outline-width"/>
            <g transform="translate({$bonus-width div 2}, {$bonus-height div 2})">
                <animateTransform attributeName="transform" attributeType="XML"
                    type="rotate" from="0" to="360" dur="1s"
                    additive="sum" fill="freeze"/>
                <path d="
                M 0,{-$r}
                L {$r * 0.59},{$r * 0.81}
                L {-$r * 0.95},{$r * -0.31}
                L {$r * 0.95},{$r * -0.31}
                L {-$r * 0.59},{$r * 0.81}
                z" fill="{$body-fill}" stroke="{$body-stroke}" fill-opacity="{$body-opacity}" stroke-width="{$outline-width}"/>
            </g>
        </svg>

    </xsl:template>


</xsl:stylesheet>